package cn.hxh.page.mapper;

import cn.hxh.page.pojo.Memo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * @Author: HongXiaoHan
 * @Description
 * @Date: 2020/10/6 20:24
 */
@Mapper
@Component
public interface MemoMapper {


    List<Memo> selectMemoAll(String userId);

    void insertMemo(Memo memo);

    int flagTop(@Param("userId") String id, @Param("content") String content, @Param("createTime") Date date);

    void delete(@Param("userId") String id, @Param("content") String content, @Param("createTime") Date time);

    void top(@Param("userId") String id, @Param("content") String content, @Param("createTime") Date date);

    int count(@Param("userId") String id);

    List<Memo> selectTop(@Param("userId")String id);

    void noTop(@Param("userId") String id, @Param("content") String content, @Param("createTime") Date date);}
